package com.test.springboot3.springboot3testdemo1.entity;

import jakarta.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： liuziyang
 * @date： 2024/7/24-22:05
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@Data
@Validated
@NoArgsConstructor
@ConfigurationProperties(prefix = "javastack")
@Component
public class JavaStackComponent {
  private boolean enabled;
  @NotNull private String name;
  private String site;
  private String author;
  private List<String> users;
  private Map<String, String> params;
  private Security security;
}
